package org.harsh.common.crypt;

/**
 * Created by liuhaibo on 2024/7/15.
 */
public interface ICrypt {
    void init();

    byte[] encrypt(byte[] data);

    byte[] encryptStr(String data);

    String encryptToStr(byte[] data);

    String encryptStrToStr(String data);

    byte[] decrypt(byte[] data);

    byte[] decryptStr(String data);

    String decryptToStr(byte[] data);

    String decryptStrToStr(String data);

}
